import asyncio
import aiofiles

url_list = [
    'https://kr.shanghai-jiuxin.com/file/mm/20210503/0yuonplsphe.jpg',
    'https://kr.shanghai-jiuxin.com/file/mm/20210503/f0qbuophvkr.jpg',
    'https://kr.wzh3c.com/file/mm/20210503/2vvm2glxboz.jpg'
]

async def download_str(text):
    name = text.rsplit('/', 1)[1].rsplit('.', 1)[0]
    name = name + '.txt'
    async with aiofiles.open('D:/ImgTest/' + name, 'w') as f:
        await f.write(text)
    print(name, '写入成功!', '内容为：', text)

def start():

    tasks = []
    for text in url_list:
        tasks.append(download_str(text))
    asyncio.run(asyncio.wait(tasks))

if __name__ == '__main__':
    start()